import os

from config.tk_desktop_toolset_param import app_name, version, icon

if __name__ == "__main__":
    pack = f"pyinstaller --onefile --noconsole -i {icon} ./{app_name}.py"
    os.system(pack)

    # rm = f"rm -f ./{app_name}.spec"
    # os.system(rm)
    #
    # mv = f"mv ./dist/{app_name}.exe ./dist/{app_name}-{version}.exe"
    # os.system(mv)
